import Vue from 'vue'
import App from './App'
import axios from 'axios'
import qs from 'qs'

// useBuiltIns: 'entry'时必须导入这两个库
// import 'core-js/stable'
// import 'regenerator-runtime'

import './style.less'

Vue.config.productionTip = false

const service = axios.create({
    // process.env.NODE_ENV === 'development' 来判断是否开发环境
    timeout: 60000
})
service.post('a', qs.stringify({
    a: 1,
    b: 2
}), {
    headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
    }
}).catch(err => {
    console.log(err)
})
// eslint-disable-next-line no-unused-vars
const prom = new Promise((resolve, reject) => {
    const sy = Symbol()
    console.log(sy)
    setTimeout(resolve, 1000)
})
prom.then(() => {
    console.log('prom then')
})

import '@/assets/README.md'
/**
// if (module.hot) {
//     module.hot.accept(['./'], () => {
//         console.log('module.hot')
//     })
// }
 */
console.log(11122)

new Vue({
    render: h => h(App),
}).$mount('#app')
